/*******************************************************************************
 * @project: EveryClass
 * @package: com.burns.everyclass.test
 * @file: GetClassFromJarTest1.java
 * @author: Administrator
 * @created: 2017-6-2
 * @purpose:
 * 
 * @version: 1.0
 * 
 * Revision History at the end of file.
 * 
 * Copyright 2017 AcconSys All rights reserved.
 ******************************************************************************/

package com.burns.everyclass.test;

import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;

public class GetClassFromJarTest3 {

	public static void main(String[] args) throws Exception {
		// 项目中jar包所在物理路径
		String jarName = "D:/eclipse_wks/EveryClass/lib/WhereUsedInProject.jar";
		JarFile jarFile = new JarFile(jarName);
		Enumeration<JarEntry> entrys = jarFile.entries();
		while (entrys.hasMoreElements()) {
			JarEntry jarEntry = entrys.nextElement();
			System.out.println(jarEntry.getName());
		}

		/**
		 * 输出结果如下
		 * 
		 * META-INF/MANIFEST.MF whereuseinproject/
		 * whereuseinproject/projects.xml AllLibrary1.xml libraryEntire.xml
		 * Projects.xml WhereUseInProject.properties AllLibrary.xml
		 * bridgesdesigns.xsd test_1.xml WhereUsedInProject.properties
		 * .classpath com/ com/acconsys/ com/acconsys/capital/
		 * com/acconsys/capital/lib/ com/acconsys/capital/lib/Client/
		 * com/acconsys/capital/lib/Client/DesignReleaseStatusUpdateClient.class
		 * com/acconsys/capital/lib/Client/ExportLibraryPartsClient.class
		 * com/acconsys/capital/lib/Client/ImportLibraryPartsClient.class
		 * com/acconsys/capital/lib/entity/
		 * com/acconsys/capital/lib/entity/OtherType.class
		 * com/acconsys/capital/lib/entity/MulticoreType.class
		 * com/acconsys/capital/lib/entity/LibrarysoldersleeveType.class
		 * com/acconsys/capital/lib/entity/LibrarycavitygroupType.class
		 * com/acconsys/capital/lib/entity/CustomerpartnumberType.class
		 * com/acconsys/capital/lib/entity/CavitySealType.class
		 * com/acconsys/capital/lib/entity/ConnectorSealType.class
		 * com/acconsys/capital/lib/entity/LibrarygraphicType.class
		 * com/acconsys/capital/lib/entity/LibrarymulticorewireType.class
		 * com/acconsys/capital/lib/entity/BaseGroupType.class
		 * com/acconsys/capital/lib/entity/LibrarymultipleterminationType.class
		 * com/acconsys/capital/lib/entity/CavitygroupType.class
		 * com/acconsys/capital/lib/entity/LibraryfootprintpinmappingType.class
		 * com/acconsys/capital/lib/entity/BackshellType.class
		 * com/acconsys/capital/lib/entity/HeatshrinkSleeveType.class
		 * com/acconsys/capital/lib/entity/ChsuserdevicepinpropertyType.class
		 * com/acconsys/capital/lib/entity/DocumentBase.class
		 * com/acconsys/capital/lib/entity/UltrasonicweldType.class
		 * com/acconsys/capital/lib/entity/InhouseAssemblyType.class
		 * com/acconsys/capital/lib/entity/DeviceType.class
		 * com/acconsys/capital/lib/entity/ClipType.class
		 * com/acconsys/capital/lib/entity/LibrarywireType.class
		 * com/acconsys/capital/lib/entity/ConnectorType.class
		 * com/acconsys/capital/lib/entity/SolderSleeveType.class
		 * com/acconsys/capital/lib/entity/LibrarymatingpinmappingType.class
		 * com/acconsys/capital/lib/entity/GrommetType.class
		 * com/acconsys/capital/lib/entity/LibrarydevicefootprintType.class
		 * com/acconsys/capital/lib/entity/ChsuserpropertypartType.class
		 * com/acconsys/capital/lib/entity/LibraryterminationType.class
		 * com/acconsys/capital/lib/entity/LibrarywirespecType.class
		 * com/acconsys/capital/lib/entity/LibrarycomponentscopeType.class
		 * com/acconsys/capital/lib/entity/LibraryhousingscopeType.class
		 * com/acconsys/capital/lib/entity/SpliceType.class
		 * com/acconsys/capital/lib/entity/WireType.class
		 * com/acconsys/capital/lib/entity/AssemblyType.class
		 * com/acconsys/capital/lib/entity/LibraryspliceType.class
		 * com/acconsys/capital/lib/entity/LibrarycavityType.class
		 * com/acconsys/capital/lib/entity/LibrarypitchType.class
		 * com/acconsys/capital/lib/entity/IdcconnectorType.class
		 * com/acconsys/capital/lib/entity/CustomerorganisationType.class
		 * com/acconsys/capital/lib/entity/LibraryrevisionType.class
		 * com/acconsys/capital/lib/entity/BackshellSealType.class
		 * com/acconsys/capital/lib/entity/LibrarydressedrouteType.class
		 * com/acconsys/capital/lib/entity/LibrarymaterialType.class
		 * com/acconsys/capital/lib/entity/LibrarycustomercolcodeType.class
		 * com/acconsys/capital/lib/entity/FixtureType.class
		 * com/acconsys/capital/lib/entity/LibrarymultiplewirecavitiesType.class
		 * com/acconsys/capital/lib/entity/LibrarymatingType.class
		 * com/acconsys/capital/lib/entity/LibraryheatshrinkType.class
		 * com/acconsys/capital/lib/entity/package-info.class
		 * com/acconsys/capital/lib/entity/LibrarysinglewirefitscavityType.class
		 * com/acconsys/capital/lib/entity/TapeType.class
		 * com/acconsys/capital/lib/entity/CavityPlugType.class
		 * com/acconsys/capital/lib/entity/SupplierpartnumberType.class
		 * com/acconsys/capital/lib/entity/LibraryconnectordetailsType.class
		 * com/acconsys/capital/lib/entity/LibrarytubeType.class
		 * com/acconsys/capital/lib/entity/LibraryrevisiongroupType.class
		 * com/acconsys/capital/lib/entity/LibrarywirepitchType.class
		 * com/acconsys/capital/lib/entity/ChsuserpropertyType.class
		 * com/acconsys/capital/lib/entity/LibrarybackshellsealType.class
		 * com/acconsys/capital/lib/entity/LibraryfixtureType.class
		 * com/acconsys/capital/lib/entity/ChsuserpropertytypeType.class
		 * com/acconsys/capital/lib/entity/BackshellPlugType.class
		 * com/acconsys/capital/lib/entity/LibraryidccavitiesType.class
		 * com/acconsys/capital/lib/entity/LibrarysingleterminationType.class
		 * com/acconsys/capital/lib/entity/LibraryinhouseassemblyType.class
		 * com/acconsys/capital/lib/entity/LibrarywiregroupcodeType.class
		 * com/acconsys/capital/lib/entity/LibrarytapeselectionType.class
		 * com/acconsys/capital/lib/entity/ObjectFactory.class
		 * com/acconsys/capital/lib/entity/LibrarytapeType.class
		 * com/acconsys/capital/lib/entity/LibrarywirethicknessType.class
		 * com/acconsys/capital/lib/entity/LibmodificationhistoryType.class
		 * com/acconsys/capital/lib/entity/LibraryinnercorewireType.class
		 * com/acconsys/capital/lib/entity/TerminalType.class
		 * com/acconsys/capital
		 * /lib/entity/ManufacturingsiteorganisationType.class
		 * com/acconsys/capital/lib/entity/LibraryweldwirespecType.class
		 * com/acconsys
		 * /capital/lib/entity/LibrarywiregroupcodespecificationType.class
		 * com/acconsys/capital/lib/entity/LibrarycomponenttypeType.class
		 * com/acconsys/capital/lib/entity/LibraryPartBaseType.class
		 * com/acconsys/capital/lib/entity/LibraryscopeType.class
		 * com/acconsys/capital/lib/entity/LibrarycolorType.class
		 * com/acconsys/capital/lib/entity/TubeType.class
		 * com/acconsys/capital/lib/entity/SupplierorganisationType.class
		 * com/acconsys/capital/lib/entity/NotesType.class
		 * com/acconsys/capital/lib/entity/HousingdefinitionType.class
		 * com/acconsys/capital/lib/entity/LibraryassemblyType.class
		 * com/acconsys/capital/lib/service/
		 * com/acconsys/capital/lib/service/IObjectService.class
		 * com/acconsys/capital/lib/service/ILibraryService.class
		 * com/acconsys/capital/lib/service/impl/
		 * com/acconsys/capital/lib/service/impl/Test.class
		 * com/acconsys/capital/lib/service/impl/WObjectServiceImpl.class
		 * com/acconsys/capital/lib/service/impl/ImplLibraryService.class
		 * com/acconsys/capital/lib/uitls/
		 * com/acconsys/capital/lib/uitls/AbstractClient.class
		 * com/acconsys/capital
		 * /lib/uitls/WebServiceUtils$InputStreamDataSource.class
		 * com/acconsys/capital/lib/uitls/WebServiceUtils.class
		 * com/acconsys/capital/lib/uitls/JAXBUtils.class
		 * com/acconsys/capital/lib/uitls/LibrarySchemaConst.class
		 * com/acconsys/capital/util/ com/acconsys/capital/util/DateUtils.class
		 * com/acconsys/capital/util/FileUtil.class
		 * com/acconsys/capital/util/ClientConfig.class
		 * com/acconsys/capital/util/ServiceFactory.class
		 * com/acconsys/capital/util/CapitalToolHelper.class
		 * com/acconsys/capital/util/KeyValueUtil.class
		 * com/acconsys/capital/util/StringUtil.class
		 * com/acconsys/capital/util/SimpleUtil.class com/acconsys/model/
		 * com/acconsys/model/DesignModel.class
		 * com/acconsys/model/DesignInfo.class
		 * com/acconsys/model/DesignModelUI.class
		 * com/acconsys/model/ProjectModel.class
		 * com/acconsys/model/ComponentInfoModel2.class
		 * com/acconsys/model/GetAllDesignByProjectName.class
		 * com/acconsys/model/ComponentInfoModel.class
		 * com/acconsys/model/ComponentUsedModel.class
		 * com/acconsys/model/ExcelModel.class
		 * com/acconsys/model/ProjectModelUI.class com/acconsys/model/jtree/
		 * com/acconsys/model/jtree/CheckBoxTreeNodeSelectionListener.class
		 * com/acconsys/model/jtree/CheckBoxTreeLabel.class
		 * com/acconsys/model/jtree/CheckBoxTreeNode.class
		 * com/acconsys/model/jtree/CheckBoxTreeCellRenderer.class
		 * com/acconsys/plugin/ com/acconsys/plugin/WhereUseInProject.class
		 * com/acconsys/plugin/GetAllLibraryInfo.class
		 * com/acconsys/plugin/GetAllLibraryInfo2.class com/acconsys/test/
		 * com/acconsys/test/UsingtheLibraryPartsexporterservice.class
		 * com/acconsys/test/WhereUsedIn2Project.class
		 * com/acconsys/test/WhereUsedInAllProjectTest1.class
		 * com/acconsys/test/MyThread.class com/acconsys/test/People.class
		 * com/acconsys/test/Test.class
		 * com/acconsys/test/WhereUsedInAllProject.class
		 * com/acconsys/test/UsingtheProjectslistservice.class
		 * com/acconsys/test/
		 * WhereUsedInAllProject_Thread$GetAllDesignByProjectName.class
		 * com/acconsys
		 * /test/WhereUsedInAllProject_Thread$GetComponentsUsedInfo.class
		 * com/acconsys
		 * /test/WhereUsedInAllProject_Thread$GetComponentsUsedInfoInOneDesign
		 * .class com/acconsys/test/WhereUsedInAllProject_Thread.class
		 * com/acconsys/test/ExportPartsUsedInLibrary.class
		 * com/acconsys/test/Dom4jTest.class
		 * com/acconsys/test/GridBagLayOutTest.class
		 * com/acconsys/test/XmlValidateUtil.class
		 * com/acconsys/test/DomParseService.class
		 * com/acconsys/test/UsingtheDesignslistservice.class com/acconsys/test/
		 * WhereUsedIn2Project_Thread1$GetAllDesignByProjectName.class
		 * com/acconsys
		 * /test/WhereUsedIn2Project_Thread1$GetComponentsUsedInfo.class
		 * com/acconsys
		 * /test/WhereUsedIn2Project_Thread1$GetComponentsUsedInfoInOneDesign
		 * .class com/acconsys/test/WhereUsedIn2Project_Thread1.class
		 * com/acconsys/test/Test1$1.class
		 * com/acconsys/test/Test1$MyThread.class com/acconsys/test/Test1.class
		 * com/acconsys/test/UsingTheDesignBridgeOutService.class
		 * com/acconsys/test/WhereUseInOneDesign.class
		 * com/acconsys/test/UsingtheDesignBridgeOutservice.xml com/acconsys/ui/
		 * com/acconsys/ui/WhereUsedInProjectsFrame.class
		 * com/acconsys/ui/WhereUsedInProjectDialog$GetComponentInfo1.class
		 * com/acconsys/ui/WhereUsedInProjectDialog.class
		 * com/acconsys/ui/WhereUsedInProjectUI.class com/acconsys/util/
		 * com/acconsys/util/PoiUtil.class com/acconsys/util/CisUtil.class
		 * com/acconsys/util/PropertieUtil.class
		 * com/acconsys/util/Constants.class UsingtheDesignBridgeOutservice.xml
		 * .project lib/ lib/Capital-service-0.1.14.1210.1520.jar
		 * lib/capitalapi.jar lib/commons-cws-11.jar lib/dom4j-1.6.1.jar
		 * lib/log4j-1.2.8.jar lib/poi-3.0.2-FINAL.jar .fatjar all-lib.xml
		 */
	}
}

/*******************************************************************************
 * <B>Revision History</B><BR>
 * [type 'revision' and press Alt + / to insert revision block]<BR>
 * 
 * 
 * 
 * Copyright 2017 AcconSys All rights reserved.
 ******************************************************************************/
